package day05.demo01;

//静态初始化数组：数据类型[]数组名称=new 数据类型[]{元素1，元素2...};
public class Demo02Array {
    public static void main(String[] args) {
        int[] array1 = new int[]{1, 2, 3, 4, 5};
        String[] array2 = new String[]{"Hello", "World", "Java"};
        for (int i = 0; i < 5; i++) {
            System.out.print(array1[i]);
        }
        System.out.println();
        for (int i = 0; i < 3; i++) {
            System.out.print(array2[i]);
        }
    }
}
